using System;
using SydEnergiPrototype.Logic;

namespace SydEnergiPrototypeUnitTest.Logic
{
    public class ParserFactoryMock : IParserFactory
    {
        public bool MakeWasCalled = false;
        public int NumberOfCalls = 0;

        private ParserFactory _parserFactory = new ParserFactory();

        public Parser Make(Type subjectType)
        {
            MakeWasCalled = true;
            NumberOfCalls++;
            return _parserFactory.Make(subjectType);
        }
    }
}